//
//  LMCellView.h
//  Perking
//
//  Created by longmin on 16/7/15.
//  Copyright © 2016年 tim. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface LMCellView : UIView

/** 默认是屏幕宽度 */
+ (instancetype)cellViewWithHeight:(CGFloat)height;

+ (instancetype)cellViewWithHeight:(CGFloat)height clickHandler:(void (^)())clickBlock;
/** 不可交互的cell */
+ (instancetype)cellViewWithNoActionHeight:(CGFloat)height;

/** 带圆角,无线的cell */
+(instancetype)circleCellViewWithHeight:(CGFloat)height clickHandler:(void (^)())clickBlock;

@property(nonatomic, strong) UIImageView *imageView;
@property(nonatomic, assign) CGFloat imageW;

@property(nonatomic, strong) UILabel *textLabel;
/** 左边的距离 */
@property(nonatomic, assign) CGFloat textLeft;

@property(nonatomic, strong) UITextField *detailFied;
/** detailField的最大文字长度 */
@property(nonatomic, assign) NSInteger maxDetailLength;
/** 右边字正则 */
@property(nonatomic, strong) NSString *regular;

@property(nonatomic, assign) CGFloat detailLeft;

@property(nonatomic, assign,getter=isOnlyAllowNum) BOOL onlyAllowNum;
/** textLabel和detaiField中间的宽度 */
@property(nonatomic, assign) CGFloat spaceBetweenDetailAndText;

@property(nonatomic, strong) UIImageView *accessoryView;

@property (nonatomic , assign) CGFloat accessoryViewSize;

@property(nonatomic, strong) UIControl *control;

@property(nonatomic, strong) void(^clickBlock)();

/** 设置detailFied带属性的placeholder */
-(void)setPlaceHolder:(NSString *)placeHolder attribute:(NSDictionary *)attribute;
/** 移除顶部和底部的线 */
-(void)removeLine;
-(void)removeTopLine;
-(void)removeBottomLine;
@end
